Two quick first-half goals helped Burton edge past bottom side Rotherham and move five points clear of the Championship relegation zone.